#include <stdio.h>

#include "resample.h"

int main(int argc, char **argv)
{
    int i = 0;
    uint16_t ibuf[] = {68, 169, 78, 96, 185, 77, 64, 85, 6, 107};
    uint16_t obuf[64] = { 0 };
    int ilen = 0;
    int olen = 0;

    ilen = sizeof(ibuf) / sizeof(uint16_t);
    resample_8k_to_16k(ibuf, obuf, ilen, &olen);
    printf("ilen = %3d\n", ilen);
    printf("olen = %3d\n", olen);

    printf("ibuf = ");
    for(i = 0; i < ilen; i++)
    {
        printf("%3d,      ", ibuf[i]);
    }
    printf("\n");

    printf("obuf = ");
    for(i = 0; i < olen; i++)
    {
        printf("%3d, ", obuf[i]);
    }
    printf("\n");

    return 0;
}

